/* 
 * File:   BusinessBaseData.hpp
 * Author: Faisal
 *
 * Created on April 27, 2012, 8:39 PM
 *
 * Description:
 *		This base class will provide the common data that all business objects will need. It's a templated class and template parameter will be the 
 *		provider specific resultset type.
 *
 */

#ifndef HBusinessBaseData_Common

#define HBusinessBaseData_Common

#include "ConnectionSourceName.hpp"

namespace Supetronix
{
	namespace PersistO
	{
		namespace Common
		{
			template<class Res>
			class BusinessBaseData
			{
			public:
				~BusinessBaseData()
				{ delete _resultSet; }

			protected:
				/*
				*	Member variables
				*/

				//underlying data context provider resultset
				Res* _resultSet;
				ConnectionSourceName _connSourceName;
			};
		}
	}
}

#endif
